import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import My from '../views/My.vue'
import Shop from '../views/Shop'
import '@/store/js/flexible.js'
import '@/store/js/better-scroll.min.js'
import '@/store/css/base.css'
import '@/store/css/通用.css'
Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/home',
        name: 'Home',
        component: Home
    },
    {
        path: '/my',
        name: 'My',
        component: My
    },
    {
        path: '/shop',
        name: 'Shop',
        component: Shop
    },
    // {
    //   path: '/shoptwo',
    //   name: 'shoptwo',
    //   component: shoptwo
    // }
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router